package com.yunxin.core.customer.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 客户流转表
 * @TableName customer_change
 */
@TableName(value ="customer_change")
@Data
public class CustomerChange implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "客户信息id")
    private Long customerInfoId;

    @Schema(description = "之前业务员id")
    private Integer agoUserId;

    @Schema(description = "新业务员id")
    private Integer newUserId;

    @Schema(description = "之前话务员id")
    private Integer agoTelephonerId;

    @Schema(description = "新的话务员id")
    private Integer newTelephonerId;

    @Schema(description = "流转类型 0流转同事 1流失客户 2流转话务")
    private Integer type;

    @Schema(description = "流转原因")
    private String cause;

    @TableLogic(value = "0",delval = "1")
    private Integer isDel;

    private String creator;

    private String editor;

    private Date createTime;

    private Date editTime;

    private Long version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}